/* 基础样式 */
body {
    margin: 0;
    padding: 60px 0 0;  /* 为固定导航栏留出空间 */
    font-family: Arial, sans-serif;
}

/* 导航栏样式 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #4285f4;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-left a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo {
    height: 30px;
    width: auto;
}

.site-name {
    font-size: 18px;
    font-weight: 500;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.nav-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
}

.nav-btn.active {
    background: rgba(255,255,255,0.2);
    font-weight: 500;
}

/* 语言选择器样式 */
.language-selector select {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
}

.language-selector select option {
    background: white;
    color: black;
}

/* 移动端导航样式 */
.menu-toggle {
    display: none;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    margin-top: 10px;
    min-width: 200px;
    z-index: 1001;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
        font-size: 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .site-name {
        display: none;
    }

    .nav-right {
        gap: 10px;
    }

    main {
        padding: 20px;
    }
} 